import request from '@/utils/request'
export function getBannerApi(params={} ){
  // 默认为1，商品为2
  const {distributionSite = 1} = params
    return  request({
      url:'/home/banner',
      params:{
        distributionSite
      }
    })
}
export function getNewApi(){
    return  request({
      url:'/home/new'
    })
}
export function getHotApi(){
    return  request({
      url:'/home/hot'
    })
}
export function getGoodsApi(){
    return  request({
      url:'/home/goods'
    })
}